package com.zyl2015;

public abstract class AbstractSet<E> extends AbstractCollection<E> implements Set<E> {
	public int hashCode() {
        int h = 0;
        Iterator<E> i = iterator();
        while (i.hasNext()) {
            E obj = i.next();
            if (obj != null)
                h += obj.hashCode();
        }
        return h;
    }
}
